#pragma once
#include "Particle.h"

#include <vector>
using namespace std;
class ParticleManager
{
public:
	vector<Particle*> m_listParticle;
	
	int m_iMaxParticle;		//so luong particle lon nhat co the co
	int m_iCurParticle;		//so luong particle dang co

	Vector3 m_origin;		//center of particle

	float m_fLife;			//particle live time
	//
	Vector3 m_position;		//vi tri = vi tri cu + van toc
	Vector3 m_velocity;		//van toc = van toc cu + gia toc, the hien huong
	Vector3 m_accelerator;	//gia toc khong doi
	//
	Vector3 m_size;			//size
	//MyVector m_sizeDelta;	//kich thuoc dao dong

	Color4 m_color;			//mau sac chinh
	//Color4 m_colorDelta;	//mau sac dao dong

	ParticleManager(Vector3 _origin); //khoi tao 1 tap hop particle voi 1 tam diem 
	~ParticleManager(void);
	

	//tao ra n particle
	void Generate(int _numParticle);

	//random cho 1 particle cac thong so moi
	virtual void InitParticle() = 0;
	
	//update cac thong so
	//virtual void Update() = 0;

	//draw cac particle
	virtual void Draw(float _posX, float _posY, float _posZ, float _viewX, float _viewY, float _viewZ) = 0;
};

